import request from '@/utils/request'

export function fetchModelList(data) {
  return request({
    url: '/cloud-system/getModelList',
    method: 'post',
    data
  })
}

export function fetchModelOne(data) {
  return request({
    url: '/cloud-system/getOneModelDetail',
    method: 'post',
    data
  })
}

export function createModel(data) {
  return request({
    url: '/cloud-system/createOneModel',
    method: 'post',
    data
  })
}

export function updateModel(data) {
  return request({
    url: '/cloud-system/updateOneModel',
    method: 'post',
    data
  })
}

export function deleteModel(data) {
  return request({
    url: '/cloud-system/deleteOneModel',
    method: 'post',
    data
  })
}

export function lockModel(data) {
  return request({
    url: '/cloud-system/lockOneModel',
    method: 'post',
    data
  })
}

export function unlockModel(data) {
  return request({
    url: '/cloud-system/unlockOneModel',
    method: 'post',
    data
  })
}

export function batchLockModel(data) {
  return request({
    url: '/cloud-system/batchLockModel',
    method: 'post',
    data
  })
}

export function batchUnLockModel(data) {
  return request({
    url: '/cloud-system/batchUnLockModel',
    method: 'post',
    data
  })
}

export function batchDeleteModel(data) {
  return request({
    url: '/cloud-system/batchDeleteModel',
    method: 'post',
    data
  })
}
